<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	
	<script>
		
			var person = {
				name:'alex',
				age:18,
				fav:function(){
					alert(this.name)
				}
			};
						
						// person.name;
						
						person.fav();
	</script>
</body>
</html>